package com.shigen.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 更新日志表
 * </p>
 *
 * @author shigen.fu
 * @since 2022-06-04
 */
@TableName("update_log")
@ApiModel(value = "UpdateLog对象", description = "更新日志表")
public class UpdateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增的主键")
    @TableId(value = "auto_id", type = IdType.AUTO)
    private Integer autoId;

    @ApiModelProperty("更新的时间")
    private LocalDateTime timestamp;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("更新的内容")
    private String content;

    @ApiModelProperty("节点的尺寸 normal/large")
    private String size;

    @ApiModelProperty("节点的类型 primary / success / warning / danger / info")
    private String type;

    @ApiModelProperty("节点图标")
    private String icon;

    @ApiModelProperty("节点颜色 hsl / hsv / hex / rgb 设计可存储rgba（a:0.01）")
    private String color;

    private Integer isDel;


    public Integer getAutoId() {
        return autoId;
    }

    public void setAutoId(Integer autoId) {
        this.autoId = autoId;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "UpdateLog{" +
        "autoId=" + autoId +
        ", timestamp=" + timestamp +
        ", author=" + author +
        ", content=" + content +
        ", size=" + size +
        ", type=" + type +
        ", icon=" + icon +
        ", color=" + color +
        ", isDel=" + isDel +
        "}";
    }
}
